package com.example.project1.presenter.imple;

import com.example.project1.model.DataModel1;
import com.example.project1.model.ModelCallback;
import com.example.project1.model.impl.DataModel1Impl;
import com.example.project1.presenter.DataPresenter1;
import com.example.project1.view.View1;

public class DataPresenter1Impl implements DataPresenter1{
	private DataModel1 model;
	private View1 view;
	
	public DataPresenter1Impl(View1 view){
		model=new DataModel1Impl();
		this.view=view;
	}

	@Override
	public void presenter1() {
		model.model1(new ModelCallback() {

			@Override
			public void loadData(Object obj) {
				String str=(String) obj;
				view.showView(str);
			}
		});
	}

	
	
	

}
